package org.jeecg.modules.run.service;

import org.jeecg.modules.run.entity.RunDetail;
import org.jeecg.modules.run.entity.Run;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 运行批次表
 * @Author: jeecg-boot
 * @Date:   2019-05-24
 * @Version: V1.0
 */
public interface IRunService extends IService<Run> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(Run run,List<RunDetail> runDetailList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(Run run,List<RunDetail> runDetailList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 数据清理
	 * @return
	 */
	boolean clearData();
	
}
